package com.example.yk2021xm04.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yk2021xm04.pojo.User;
import com.example.yk2021xm04.query.UserQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author ZengQi
 * @since 2021-11-26
 */
public interface IUserService extends IService<User> {
    /**
     * 根据用户名查询用户记录
     * @param userName
     * @return
     */
    User findUserByUserName(String userName);

    void register(User user);

    void addUser(User user);

    Map<String, Object> userList(UserQuery userQuery);

    void deleteUser(Integer[] ids);

    void updateUser(User user);

    User getUserByActiveCode(String active_code);

    User findUserByProjectLeader(String projectLeader);

    void updateUserInfo(User user);

    void updateUserPassword(String userName, String oldPassword, String newPassword, String confirmPassword);

    List<Object> registerTimeByDay();

    List<Object> registerCountByDay();

    Integer UserCountInDay();

    Integer UserCountInYesterday();

}
